package com.common.model;

import org.codehaus.jackson.annotate.JsonIgnoreProperties;

/**
 * 所有用户的基类
 * @author yww
 *
 */
@JsonIgnoreProperties("password")
public class BaseUser {
	/**
	 * 用户id
	 */
	private Integer id;
	/**
	 * 用户登陆账号
	 */
	private String no;
	/**
	 * 用户密码
	 */
	private String password;
	/**
	 * 用户姓名
	 */
	private String name;
	/**
	 * 用户性别
	 */
	private String gender;
	/**
	 * 用户电话号码
	 */
	private String telephone;
	/**
	 * 用户类型 admin teacher student
	 */
	private String userType;
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getNo() {
		return no;
	}
	public void setNo(String no) {
		this.no = no;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getGender() {
		return gender;
	}
	public void setGender(String gender) {
		this.gender = gender;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getTelephone() {
		return telephone;
	}
	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}
	public String getUserType() {
		return userType;
	}
	public void setUserType(String userType) {
		this.userType = userType;
	}
//	@Override
//	public String toString() {
//		return "BaseUser [id=" + id + ", no=" + no + ", password=" + password
//				+ ", name=" + name + ", gender=" + gender + ", telephone="
//				+ telephone + ", userType=" + userType + "]";
//	}
	
}
